package org.csu.chatserver.service;

import org.csu.chatserver.entity.pojo.RoomMessage;
import java.util.List;

public interface RoomMessageService {
    // 发送消息
    boolean sendMessage(Integer roomId, Integer senderId, String context);
    
    // 获取房间的消息历史
    List<RoomMessage> getRoomMessages(Integer roomId);
    
    // 获取指定时间之后的消息
    List<RoomMessage> getMessagesSince(Integer roomId, String timestamp);
    
    // 删除消息
    boolean deleteMessage(Integer messageId);
}